#include<stdio.h>
#include<string.h>

int main()
{
    char a[] = "123456789";
    puts(a);
    char *s = a;
    char *end = NULL;
    char temp;
    for(end = s + strlen(a) - 1; end > s ; --end, ++s)
    {
        temp = *s;
        *s = *end;
        *end = temp;

    }
    printf("%s\n",a);
    return 0;
}
